---
title: Auth router
description: An overview of the Auth router
---

## Procedures

The auth router has the following procedures:

### Get the current user

Returns the current logged in user and the workspaces they have access to.

- Access: `@protected`

```typescript
// Client components
const { data } = useQuery(trpc.auth.me.queryOptions())

// Server components
const data = await caller.auth.me()
```
